package org.example.service;

import org.springframework.stereotype.Service;

@Service
public class ProductServicelmpl implements ProductService {
    @Override
    public void delete(int pid){
        System.out.println("删除了pid为"+pid+"的商品");
    }
    @Override
    public int add(String pname,double price){
        System.out.println("添加了商品"+pname+",价格为"+price);
        return 1000;
    }
    @Override
    public String findInfo(int pid){
        return "查询了pid为"+pid+"的商品信息:xxx";
    }

}
